﻿@model IEnumerable<Liekhus.TimeTracker.Module.Task>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>Name</th>
        <th>Description</th>        
        <th>Covey Role</th>        
        <th>Covey Quadrant</th>        
        <th>Created</th>
        <th>Modified</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { item.Oid }) |
            @Html.ActionLink("Details", "Details", new { item.Oid }) |
            @Html.ActionLink("Delete", "Delete", new { item.Oid })
        </td>
        <td>@item.Name</td>
        <td>@item.Description</td>
        <td>xxx</td>
        <td>yyy</td>
        <td>@String.Format("{0:g}", item.CreatedOn)</td>
        <td>@String.Format("{0:g}", item.ModifiedOn)</td>
    </tr>
}

</table>

